package com.qihoo.finance.backup;

import com.qihoo.finance.backup.reader.IteratorBackConf;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BackMapper {

    @SuppressWarnings("SqlNoDataSourceInspection")
    @Select("select * from ${table} where ${key} >= #{minKey} and ${key} < #{maxKey} order by ${key} limit #{rows} ")
    List<Map<String, Object>> read(IteratorBackConf conf);
}
